.class public Ldgb/v3;
.super Ljava/lang/Object;
.source "SourceFile"


# static fields
.field static a:[B


# direct methods
.method static constructor <clinit>()V
    .locals 1

    const/16 v0, 0x8

    new-array v0, v0, [B

    .line 1
    sput-object v0, Ldgb/v3;->a:[B

    return-void
.end method

.method public static a(Ljava/io/InputStream;I)Ljava/lang/String;
    .locals 3
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/io/IOException;
        }
    .end annotation

    .line 9
    new-instance v0, Ljava/lang/StringBuilder;

    invoke-direct {v0, p1}, Ljava/lang/StringBuilder;-><init>(I)V

    const/4 v1, 0x0

    :goto_0
    if-ge v1, p1, :cond_0

    .line 10
    invoke-virtual {p0}, Ljava/io/InputStream;->read()I

    move-result v2

    and-int/lit16 v2, v2, 0xff

    int-to-char v2, v2

    invoke-virtual {v0, v2}, Ljava/lang/StringBuilder;->append(C)Ljava/lang/StringBuilder;

    add-int/lit8 v1, v1, 0x1

    goto :goto_0

    .line 11
    :cond_0
    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object p0

    return-object p0
.end method

.method private static declared-synchronized a([B)V
    .locals 3

    const-class v0, Ldgb/v3;

    monitor-enter v0

    if-eqz p0, :cond_0

    .line 5
    :try_start_0
    array-length v1, p0

    const/16 v2, 0x8

    if-ne v1, v2, :cond_0

    .line 6
    sput-object p0, Ldgb/v3;->a:[B
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    goto :goto_0

    :catchall_0
    move-exception p0

    monitor-exit v0

    throw p0

    .line 7
    :cond_0
    :goto_0
    monitor-exit v0

    return-void
.end method

.method public static a(Ljava/io/InputStream;)Z
    .locals 1
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/io/IOException;
        }
    .end annotation

    .line 8
    invoke-static {p0}, Ldgb/v3;->b(Ljava/io/InputStream;)I

    move-result p0

    const/4 v0, 0x1

    if-ne p0, v0, :cond_0

    goto :goto_0

    :cond_0
    const/4 v0, 0x0

    :goto_0
    return v0
.end method

.method private static declared-synchronized a()[B
    .locals 3

    const-class v0, Ldgb/v3;

    monitor-enter v0

    .line 1
    :try_start_0
    sget-object v1, Ldgb/v3;->a:[B

    const/4 v2, 0x0

    .line 2
    sput-object v2, Ldgb/v3;->a:[B
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    if-eqz v1, :cond_0

    .line 3
    monitor-exit v0

    return-object v1

    :cond_0
    const/16 v1, 0x8

    :try_start_1
    new-array v1, v1, [B
    :try_end_1
    .catchall {:try_start_1 .. :try_end_1} :catchall_0

    .line 4
    monitor-exit v0

    return-object v1

    :catchall_0
    move-exception v1

    monitor-exit v0

    throw v1
.end method

.method public static b(Ljava/io/InputStream;)I
    .locals 4
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/io/IOException;
        }
    .end annotation

    .line 1
    invoke-static {}, Ldgb/v3;->a()[B

    move-result-object v0

    const/4 v1, 0x4

    const/4 v2, 0x0

    .line 2
    invoke-virtual {p0, v0, v2, v1}, Ljava/io/InputStream;->read([BII)I

    move-result p0

    if-ne p0, v1, :cond_1

    const/4 p0, 0x0

    :goto_0
    if-ge v2, v1, :cond_0

    shl-int/lit8 p0, p0, 0x8

    .line 3
    aget-byte v3, v0, v2

    and-int/lit16 v3, v3, 0xff

    or-int/2addr p0, v3

    add-int/lit8 v2, v2, 0x1

    goto :goto_0

    :cond_0
    move v2, p0

    .line 4
    :cond_1
    invoke-static {v0}, Ldgb/v3;->a([B)V

    return v2
.end method

.method public static c(Ljava/io/InputStream;)[B
    .locals 1
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/io/IOException;
        }
    .end annotation

    .line 1
    invoke-static {p0}, Ldgb/v3;->b(Ljava/io/InputStream;)I

    move-result v0

    .line 2
    new-array v0, v0, [B

    .line 3
    invoke-virtual {p0, v0}, Ljava/io/InputStream;->read([B)I

    return-object v0
.end method
